import request from '@/utils/request'

// 企业列表
export function allAuditList(data) {
  return request({
    url: '/sys/enterprise/listEnterprise',
    method: 'post',
    params: data
  })
}
// 企业审核
export function enterpriseAudit(data) {
  return request({
    url: '/sys/enterprise/enterpriseAudit',
    method: 'post',
    data: data
  })
}

// 企业详情
export function enterpriseDetail(id) {
  return request({
    url: `/sys/enterprise/selectByIdNoPermission/${id}`
  })
}

// 审核列表  companyId
export function auditList(params) {
  return request({
    url: '/sys/enterprise/selectAuditLogByEnterpriseId',
    params
  })
}
